package com.inforich.appManage.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.inforich.common.core.domain.BaseParamEntity;
import com.inforich.common.annotation.Excel;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.inforich.common.core.domain.BaseEntity;

/**
 * 联系人管理对象 br_contact
 *
 * @author hjm
 * @date 2022-10-27
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("br_contact")
public class Contact extends BaseParamEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键
   */
  @TableId(type = IdType.ASSIGN_UUID)
  private String id;

  /**
   * 名称
   */
  @Excel(name = "名称")
  private String contactName;

  /**
   * 手机号
   */
  @Excel(name = "手机号")
  private String contactPhone;

  /**
   * app用户
   */
  private String appUserId;

  /**
   * app角色
   */
  @NotBlank(message = "角色不能为空")
  private String appRoleId;
  @Excel(name = "app角色")
  @TableField(exist = false)
  private String appRoleName;

  /**
   * 处置地ID
   */
  private Long disposalLandId;
  @TableField(exist = false)
  @Excel(name = "资源利用化企业")
  private String disposalLandName;

  /**
   * 项目ID
   */
  private String projectId;
  @TableField(exist = false)
  @Excel(name = "所属项目")
  private String projectName;


  /**
   * 清运公司ID
   */
  private String transportCompanyId;
  @TableField(exist = false)
  @Excel(name = "清运公司")
  private String transportCompanyName;

  /**
   * 司机ID
   */
  private Long driverId;
  @Excel(name = "司机姓名")
  @TableField(exist = false)
  private String driverName;
  @Excel(name = "关联账号")
  @TableField(exist = false)
  private String userAccount;

}